import request from '../utils/request'
//充值
export const goodslist = data =>
    request({
        url: '/api/v1/h5/recharge/goodslist',
        method: "POST",
        data
    });
export const userwalletlogList = data =>
    request({
        url: 'api/v1/h5/wallet/userwalletlog/list',
        method: "POST",
        data
    });
//充值记录
export const rechargerecordList = data =>
    request({
        url: 'api/v1/h5/recharge/rechargerecord/list',
        method: "POST",
        data
    });
//提现记录
export const withdrawrecordList = data =>
    request({
        url: 'api/v1/h5/withdraw/withdrawrecord/list',
        method: "POST",
        data
    });
export const recharge = data =>
    request({
        url: '/api/v1/h5/recharge/',
        method: "POST",
        data
});
export const onLinePay2 = data =>
    request({
        url: '/api/v1/h5/onLinePay2/pay/'+data.orderId,
        method: "POST",
        data
    });
export const withdraw = data =>
    request({
        url: 'api/v1/h5/withdraw/create',
        method: "POST",
        data
    });
